<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col>
            <a-form-model-item label="更新版本号" prop="versionNumber">
              <a-input
                v-model="form.versionNumber"
                placeholder="请输入更新版本号"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col>
            <a-form-model-item label="内容" prop="info" class="addModel">
              <div id="vditorEdit" name="description"></div>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32"> </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import SysPublishLogEditForm from "./SysPublishLogForm";
export default {
  ...SysPublishLogEditForm,
};
</script>
<style lang="less">
#vditor {
  margin: 0 5% 5% 5%;
}
.addModel {
  .vditor-toolbar--pin {
    top: auto !important;
  }
}
</style>
